package top.jiangqiang.qyblog.core.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import top.jiangqiang.qyblog.core.base.entity.BaseEntityVo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author JiangQiang
 * @since 2022-09-12
 */
@Data
@Accessors(chain = true)
@Schema(name = "博客文章相关接口响应结果", description = "")
public class ArticleVo extends BaseEntityVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "文章概要，用于文章列表处显示")
    private String abstractContent;

    @Schema(description = "文章别名，用于拼接该文章详情页的访问地址")
    private String alias;

    @Schema(description = "文章封面图片地址")
    private String coverUrl;

    @Schema(description = "markdown格式的文章内容")
    private String content;

    @Schema(description = "文章额外配置，例如附件列表")
    private Map<String, Object> metadata;

    @Schema(description = "文章所属标签列表")
    private List<BlogTagVo> blogTagList;

    @Schema(description = "文章所属分类")
    private List<CategoryVo> categoryList;

    @Schema(description = "文章发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "文章排序")
    private Integer sort = 0;

    @Schema(description = "文章状态，1：未发布 2：已发布")
    private Integer status;

}
